import { createApp } from 'vue'
import 'normalize.css'  //样式重置库
import './style.css'  //全局样式文件
import App from './App.vue' //根组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //引入图标
import router from './router/index.js'

const app = createApp(App)

// 批量注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)  //向应用注入路由，必须在app.mount前执行

app.mount('#app')
